package com.gyg.client;

import com.gyg.returns.RespEntity;
import com.gyg.returns.RespTable;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "cloudRecordClient", url = "${cloud.box.url}")
public interface CloudRecordClient {

    /**
     * 操作记录列表
     * @param optionType
     * @param page
     * @param limit
     * @return
     */
    @GetMapping("/cloud-record/list")
    RespTable cloudRecordList(@RequestParam(value = "optionType", required = true) Integer optionType,
                              @RequestParam(value = "page", required = true) Integer page,
                              @RequestParam(value = "limit", required = true) Integer limit,
                              @RequestParam(value = "username", required = false) String username);

    /**
     * 文件上传统计
     * @return
     */
    @GetMapping("/cloud-record/uploadCount")
    RespEntity uploadCount();

    /**
     * 文件下载统计
     * @return
     */
    @GetMapping("/cloud-record/downloadCount")
    RespEntity downloadCount();
}
